package com.zhang.apiboss.controller;

import com.zhang.apiboss.service.DriverCarBindingRelationshipService;
import com.zhang.internalcommon.dto.DriverCarBindingRelationship;
import com.zhang.internalcommon.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 类功能描述
 *
 * @author Kye
 * @date 2025-04-13
 */
@RestController
@RequestMapping("/driver-car-binding-relationship")
public class DriverCarBindingRelationshipController {
	@Autowired
	private DriverCarBindingRelationshipService driverCarBindingRelationshipService;
	@PostMapping("/bind")
	public ResponseResult bind(@RequestBody DriverCarBindingRelationship driverCarBindingRelationship){
		return driverCarBindingRelationshipService.bind(driverCarBindingRelationship);
	}

	@PostMapping("/unbind")
	public ResponseResult unbind(@RequestBody DriverCarBindingRelationship driverCarBindingRelationship){
		return driverCarBindingRelationshipService.unbind(driverCarBindingRelationship);
	}
}
